package com.atguigu.gulimail.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("gulimail-order")
public interface OrderFeignService {

    /**
     * 远程调用必须用@RequestBody  并且使用postMapping
     * @param params
     * @return
     */
    @PostMapping("/order/order/orderList")
     R getOrderList(@RequestParam Map<String, Object> params);
}
